package com.fjxd.feign.clients;



import com.fjxd.feign.pojo.Plane;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient(value = "planeService")
public interface PlaneClient {
    @GetMapping("/plane/")
    List<Plane> getPlaneAll();

    @GetMapping("/plane/{id}")
    Plane getPlaneById(@PathVariable Integer id);
}
